﻿using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Web;

namespace EncodingTest
{
    public class Test1
    {
        public static string Ascll() {
            Encoding enc = Encoding.GetEncoding(65001);
            Encoding altEnc = Encoding.GetEncoding("utf-8");
            Console.WriteLine("{0} = Code Page {1}: {2}", enc.EncodingName,
                              altEnc.CodePage, enc.Equals(altEnc));
            var a = (char)0x7b2c;
            var s = (char)31532;
            var aaa = (char)31532;
            var t = Char.ConvertFromUtf32(31532);

            var w = s.ToString();

            var str = "测试";
            var str1 = "t";

            var aaaa = Encoding.UTF8.GetBytes(str);
            var bbb = Encoding.UTF8.GetBytes(str1);
            var tt = HttpContext.Current.Server.MapPath("/test.txt");
            var fior = File.OpenRead(tt);
            
            for (int i = 0; i < fior.Length; i++)
            {
               var b1= fior.ReadByte();
            }
            var ace=Convert.ToString((char)187, 10);
            var c = (char)187;
            return "";
        }
    }
    public class TestStatic {
        public static string testc{ get; set; }
    }
}